package com.atguigu.gulimall.product;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/*
     1.整合mybatis-plus
     2.配置数据源 导入驱动 配置yml文件
     使用@MapperScan

     三:JSR303
     1.给Bean添加校验注解:javax.validation.constraints, 并定义自己的message提示
     2. 开启校验功能@Valid 校验错误后 会有响应
     3. 给校验的bean后紧跟一个BindingResult 就可以得到校验的结果
     4. 分组校验
      @NotBlank(message="",groups={AddGroup.class})
      2.@Validated({AddGroup.class})
 */
@EnableDiscoveryClient
@MapperScan(basePackages = {"com.atguigu.gulimall.product.dao"})
@SpringBootApplication
public class GulimallProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallProductApplication.class, args);

    }

}
